Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat(web-react): Use different resize observer hook #1645

Merged
merged 1 commit into from
Sep 18, 2024

Conversation

literat
Copy link
Collaborator

@literat literat commented Sep 14, 2024

Description

Switch from the @react-hooks/resize-observer to usehooks-ts. First one is directly using window.ResizeObserver without any condition and this fails on Next.js SSR. The second one has a better usage behind the isMounted condition.

Additional context

Issue reference

https://jira.almacareer.tech/browse/DS-1465

@github-actions github-actions bot added the bug Something isn't working label Sep 14, 2024
Copy link

netlify bot commented Sep 14, 2024

Deploy Preview for spirit-design-system ready!

Name Link
🔨 Latest commit 2d1cea7
🔍 Latest deploy log https://app.netlify.com/sites/spirit-design-system/deploys/66ead507a46e1f0008e6c9b5
😎 Deploy Preview https://deploy-preview-1645--spirit-design-system.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 96 (no change from production)
Accessibility: 93 (no change from production)
Best Practices: 100 (no change from production)
SEO: 82 (no change from production)
PWA: -
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

netlify bot commented Sep 14, 2024

Deploy Preview for spirit-design-system-storybook ready!

Name Link
🔨 Latest commit 2d1cea7
🔍 Latest deploy log https://app.netlify.com/sites/spirit-design-system-storybook/deploys/66ead5070ef7440008a4b3ca
😎 Deploy Preview https://deploy-preview-1645--spirit-design-system-storybook.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@literat literat force-pushed the fix/DS-1465-collapse-resize-observer branch from 15eed5d to 9d15df4 Compare September 14, 2024 13:42
@literat literat marked this pull request as ready for review September 17, 2024 11:31
@literat literat requested review from pavelklibani, curdaj and a team as code owners September 17, 2024 11:31
@literat literat force-pushed the fix/DS-1465-collapse-resize-observer branch from 26070a7 to 51571d8 Compare September 17, 2024 11:48
@coveralls
Copy link

coveralls commented Sep 18, 2024

Coverage Status

coverage: 75.241% (-3.5%) from 78.696%
when pulling 2d1cea7 on fix/DS-1465-collapse-resize-observer
into 64b533d on main.

@literat literat force-pushed the fix/DS-1465-collapse-resize-observer branch 2 times, most recently from b86a744 to 64b8cb1 Compare September 18, 2024 12:58
@literat literat force-pushed the fix/DS-1465-collapse-resize-observer branch from 20788a7 to 2d1cea7 Compare September 18, 2024 13:26
@literat literat merged commit fb39034 into main Sep 18, 2024
17 checks passed
@literat literat deleted the fix/DS-1465-collapse-resize-observer branch September 18, 2024 13:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants